<template>
    <div class="add-reduce-button flex-bm bd7 h40">
        <span class="button minus-button w40 lh40 clr5 fwb" @click="onClickMinus">-</span>
        <span class="num">
            <slot>num</slot>
        </span>
        <span class="button plus-button w40 lh40 clr5 fwb" @click="onClickPlus">+</span>
    </div>
</template>

<script>
    export default {
        methods: {
            onClickMinus: function () {
                this.$emit('click-minus')
            },
            onClickPlus: function () {
                this.$emit('click-plus')
            }
        }
    }
</script>

<style lang="stylus">
.add-reduce-button
    .button:hover
        cursor: pointer
        background-color: #e0e0e0
        transition: background-color 0.3s
</style>